package com.poiapp.excel.enums;


public enum ExcelEnum {

    XLS("xls"),
    XLSX("xlsx");

    private String title;

    ExcelEnum(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public static ExcelEnum getByTitle(String title) {
        for (ExcelEnum item : ExcelEnum.values()) {
            if (item.getTitle().equals(title)) {
                return item;
            }
        }
        return null;
    }

}
